﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HR/HRMasterPage.master" AutoEventWireup="true" CodeFile="user-details.aspx.cs" Inherits="HR_user_details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="block">
    <div class="secondary-navigation">
                    <ul class="wat-cf">
                        <li class="active first"><a href="user-list.aspx" >Back</a></li>
                    </ul>
                </div>
        <div class="content">
        <h2 class="title">User Details</h2>
            <div class="inner">
                <br />
                <div class="content">
                <div id="divAppForm" runat="server">
                    <table width="100%" cellpadding="3" cellspacing="3" class="application">
                        <tr>
                            <td width="170px">
                                Created Date
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblCreatedDate" Text="" />
                                </td>
                        </tr><tr>
                            <td width="170px">
                                Name
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblName" Text="" />
                                </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Contact Number
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblContactNumber" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Email
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblEmailAddress" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                DOB
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblDOB" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Qualification
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblQualification" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                No of Years of Experience
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblYearsExperience" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Sales Experience
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblSalesExperience" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                 Employment Status
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblEmpStatus" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                 Occupation / Job Title
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblOccupation" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Preferred Country
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                               <asp:Label runat="server" ID="lblCountry" Text="" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Attach CV
                            </td>
                            <td>
                                :
                            </td>
                            <td valign="top">
                                <asp:Button ID="btnDownloadCV" runat="server" Text="Download CV" 
                                    onclick="btnDownloadCV_Click" Width="100px" Height="30px" />
                                <asp:HiddenField ID="hidCV" runat="server" />    
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Voice Record
                            </td>
                            <td>
                                :
                            </td>
                            <td valign="top">
                                <asp:Button ID="btnDownloadVR" runat="server" Text="Download" 
                                    onclick="btnDownloadVR_Click" Width="100px" Height="30px" />
                                <asp:HiddenField ID="hidVR" runat="server" />    
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                            </td>
                            <td>
                            </td>
                            <td>
                                
                            </td>
                        </tr>
                    </table>
                </div>
                <h3>Applied Jobs</h3>
                <asp:Label ID="lblCurrpageTop" runat="server"></asp:Label>
                <asp:GridView ID="gvUser" runat="server" AutoGenerateColumns="false" 
                    CssClass="table" AlternatingRowStyle-CssClass="even" 
                    RowStyle-CssClass="odd" GridLines="None" onrowdatabound="gvUser_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="JobTitle" HeaderText="Job Title" />
                        <asp:TemplateField SortExpression="RefUserID" HeaderText="User">
                            <ItemTemplate>
                                <asp:Label ID="lblRefUserID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RefUserID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CreatedDate" HeaderText="Created Date" />
                        <asp:BoundField DataField="ApplicationStatus" HeaderText="Application Status" />
                        <asp:TemplateField SortExpression="Remark" HeaderText="Remark">
                            <ItemTemplate>
                                <asp:Label ID="lblRemark" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Remark") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="VerifiedBy" HeaderText="Verified By">
                            <ItemTemplate>
                                <asp:Label ID="lblVerifiedBy" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "VerifiedBy") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                            <a href='<%# "job-application-details.aspx?aid=" +  DataBinder.Eval(Container.DataItem, "ApplicationID") %>'
                                       >View</a> 
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:Label ID="lblCurrpage" runat="server"></asp:Label>
            </div>
                
                
            </div>
        </div>
    </div>
</asp:Content>

